<template>
			<view class="container">
			
			        <view class="calendar">
			            <calendar ref="calendar" v-if="isShow" @cancel="cancel" :startDate="startDate" :height="height" :endDate="endDate" @selectDate="selectDate" :limit="limit" :bottom1="bottom1" :yimanArray="yimanArray" />
			        </view>
			
			    </view>
</template>

<script>
	import calendar from '@/components/dc-calendar/dc-calendar.vue'
	
	export default {
	       components: {
	
	           calendar
	
	       },
	
	data() {
	           return {
	               isShow:false,
	               startDate:'',     //开始日期2022-01-26
	               endDate:'',       //结束日期 2022-01-29
	               height:600,                 //日历容器高度
	               limit:12,                    //展示月份数量
	               bottom1:0,
	               yimanArray:[],
	               dicdes:{
	                   price:1
	               },//传过来的订单数据
	               type:0,//1是进入订单 0是返回
	
	           }
	       },
	       onLoad(e) {
	
	                   let sys = uni.getSystemInfoSync();
	                   if (sys.statusBarHeight >=44) {
	                       // this.height = sys.windowHeight - 34;
	                       this.bottom1 = 34;
	                   } else{
	                       // this.height = sys.windowHeight;
	                   }
	
	                   // console.log(sys);
	
	                   var  dicday = uni.getStorageSync('入离日期');
	                   if(dicday){
	                       this.startDate = dicday.startDate;
	                       this.endDate = dicday.endDate;
	                   }
	                  // this.newdate();
	
	                       this.type = 1;
	                       // this.dicdes = JSON.parse(e.dic);
	                       uni.setStorageSync('满房日期显示',1)
	                       // //取房间满房日期
	                       this.gethttpurl(this.dicdes.id);
	
	               },
	               methods: {
	
	                          //取房间满房日期
	                          gethttpurl(id){
	
	                              this.yimanArray =['2022-03-25','2022-04-10'];
	                              this.isShow = true;
	                              uni.hideLoading();
	
	                          },
	                          },
							  }
</script>

<style>
	
</style>